package class

type Bank struct {
	money int
}

func (b *Bank) Read(password string) int {
	if password == "123456" {
		return b.money
	} else {
		return 0
	}

}
func (b *Bank) Write(data int, password string) {
	if password == "123456" {
		b.money = data
	}

}
